/**
 * Created by KY on 2017/9/1.
 */
define(['jquery-weui','ldfw/utils/format'], function () {
    return LDFW.Component.extend({
        initialize:function(){
            this.$el.calendar({
                formatValue:function(p,values){
                   return new Date(values[0]).format('yyyy-MM-dd')
                }
                // onClose:function(p){
                //     $(this.input).val(new Date(p.value[0]).format('yyyy-MM-dd'))
                // }
            })
        },
        setValue:function(item){

        },
        getValue:function(){
            return this.$el.val()
        }
    })
})

